package com.example.errortext.config;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ModelAttribute;

@ControllerAdvice
public class GlobalConfig {

    @ModelAttribute
    public void globalConfig(Model model){
        model.addAttribute("author","张三");
    }
}
